home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
sfsendsd.zip
/
SFSENDSD.DOC
< prev
Wrap
Text File
|
1991-03-23
|
6KB
|
181 lines
SFSENDSD
(SPITFIRE SEND SPEED)
Version 1.6
Written By Mike Woltz
Buffalo Creek Software
INTRODUCTION
------------
SFSENDSD is a utility written in Turbo Assembler and written to be
used in conjunction with a SPITFIRE Bulletin Board System to determine
the baud rate of a caller (by reading SFDOORS.DAT, SFMAIN.DAT, SFFILE.DAT
or SFMESS.DAT) and then pass an corresponding ERRORLEVEL to DOS. An
example of using SFSENDSD is the usage of SPITFIRE as a door program
within SPITFIRE. In such case, once SFSENDSD has passed the ERRORLEVEL
to DOS, then SF.BAT can execute the correct commands to run the second
copy of SPITFIRE (see the below example). The exact baud rate must be
passed as a parameter when using a second copy of SPITFIRE. Refer to
the SPITFIRE manual for additional details on passing the baud rate
to SPITFIRE.
SETUP
-----
If SPITFIRE is to be run as a door then the necessary commands to
execute the second copy of SPITFIRE must be included in the SF.BAT file.
Let's assume you wish to run a second copy of SPITFIRE in a directory
path C:\SF\SUBSF as Door A. You would need to set your SF.BAT file up
to look similar to this:
:DOOR_A
COPY SFDOORS.DAT C:\SF\SFSUBSF
CD\SF\SUBSF
SFSENDSD
IF ERRORLEVEL 193 GOTO 19200E
IF ERRORLEVEL 192 GOTO 19200
IF ERRORLEVEL 145 GOTO 14400E
IF ERRORLEVEL 144 GOTO 14400
IF ERRORLEVEL 97 GOTO 9600E
IF ERRORLEVEL 96 GOTO 9600
IF ERRORLEVEL 73 GOTO 7200E
IF ERRORLEVEL 72 GOTO 7200
IF ERRORLEVEL 39 GOTO 38400E
IF ERRORLEVEL 38 GOTO 38400
IF ERRORLEVEL 49 GOTO 4800E
IF ERRORLEVEL 48 GOTO 4800
IF ERRORLEVEL 25 GOTO 2400E
IF ERRORLEVEL 24 GOTO 2400
IF ERRORLEVEL 13 GOTO 1200E
IF ERRORLEVEL 12 GOTO 1200
IF ERRORLEVEL 4 GOTO 300E
IF ERRORLEVEL 3 GOTO 300
IF ERRORLEVEL 1 GOTO THISEND
GOTO THISEND
:38400
SPITFIRE 38400 /N
GOTO THISEND
:19200
SPITFIRE 19200 /N
GOTO THISEND
:14400
SPITFIRE 14400 /N
GOTO THISEND
:9600
SPITFIRE 9600 /N
GOTO THISEND
:7200
SPITFIRE 7200 /N
GOTO THISEND
:4800
SPITFIRE 4800 /N
GOTO THISEND
:2400
SPITFIRE 2400 /N
GOTO THISEND
:1200
SPITFIRE 1200 /N
GOTO THISEND
:300
SPITFIRE 300 /N
GOTO THISEND
:38400E
SPITFIRE 38400 /E /N
GOTO THISEND
:19200E
SPITFIRE 19200 /E /N
GOTO THISEND
:14400E
SPITFIRE 14400 /E /N
GOTO THISEND
:9600E
SPITFIRE 9600 /E /N
GOTO THISEND
:7200E
SPITFIRE 7200 /E /N
GOTO THISEND
:4800E
SPITFIRE 4800 /E /N
GOTO THISEND
:2400E
SPITFIRE 2400 /E /N
GOTO THISEND
:1200E
SPITFIRE 1200 /E /N
GOTO THISEND
:300E
SPITFIRE 300 /E /N
GOTO THISEND
:THISEND
CD\SF
GOTO LOOP
:DOOR_B
As you might well be able to see, SFSENDSD determines the baud rate
the user is calling at and then issues an ERRORLEVEL to DOS for that
particular baud rate. The batch file uses the ERRORLEVEL to invoke the
appropriate SPITFIRE command line parameter.
The below listed chart shows which ERRORLEVEL represents which baud
rate. You will notice that SFSENDSD also recognizes whether the initial
connection is an error correction type connection and sends an ERRORLEVEL
accordingly therefore making the YModem-g protocols available when
appropriate.
BAUD RATE ERRORLEVEL
--------- ----------
LOCAL ............. 0
.DAT file not found ............. 1
300 ............. 3
Error Checker 300 ............. 4
1200 ............ 12
Error Checker 1200 ............ 13
2400 ............ 24
Error Checker 2400 ............ 25
4800 ............ 48
Error Checker 4800 ............ 49
7200 ............ 72
Error Checker 7200 ............ 73
9600 ............ 96
Error Checker 9600 ............ 97
14400 ............144
Error Checker 14400 ............145
19200 ........... 192
Error Checker 19200 ........... 193
38400 ............ 38
Error Checker 38400 ............ 39
DISTRIBUTION
------------
SFSENDSD is distributed under the shareware concept. You are
free to distribute the SFSENDSD program as long as it remains
unmodified and no fee is charged. If you continue to use this
program after an adequate evaluation period a fee is required.
A $0.25 fee is required of registered SPITFIRE sysops and a
$ 5.00 fee is required of those who are not registered users
of SPITFIRE.
DISCLAIMER
----------
Mike Woltz and Buffalo Creek Software shall not be held
responsible for any damage incurred by the user to hardware,
software or peripheral devices while running SFSENDSD. All
responsibility lies with the user of the software.
The documentation for SFSENDSD is contributed by Jacque
Shipley and The Mother Board BBS. The shareware version of
SPITFIRE and other SPITFIRE utilities are available for download
from:
Buffalo Creek's BBS The Mother Board BBS
Mike Woltz, Sysop Jacque Shipley, Sysop
(515) 225-8496 (515) 986-3464
38400/19200/9600/2400/1200 Baud 9600/2400/1200 Baud